// ---------------------------------------------------------------------------

#ifndef ModuleConfH
#define ModuleConfH

#include <Classes.hpp>
#include <XMLDoc.hpp>
#include <msxmldom.hpp>
#include "GridInfo.h"
#include <map>

// ---------------------------------------------------------------------------
using namespace std;

class TModuleConf {
private:
    map<int, TGridInfo>GridMap;

public:
    static TModuleConf __fastcall GetModuleConfig(Classes::TComponent* AOwner, String conf);

    int __fastcall GridCount();

    TGridInfo* GetGridByIndex(int index);

    TGridInfo* GetGridByTable(String table);
};
#endif
